﻿<%@ Page Language="C#"  CodeFile="ManageMsg.aspx.cs" Inherits="admin_ManageMsg" validateRequest=false AutoEventWireup="true" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="images/main.css" rel="stylesheet"/>
</head>
<script>
   function checkNum()
   {
    var chr=String.fromCharCode(event.keyCode);
    
    if(isNaN(chr))
    {
    event.keyCode=0;
    }
   }
   
  </script>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="width: 1013px">
                    <table align="center" border="0" bordercolordark="black" cellpadding="0" cellspacing="0"
                        width="90%">
                        <tr>
                            <td align="center" style="width: 913px" valign="top">
                                <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td align="left" valign="top">
                                            <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td align="center" style="height: 300px" valign="top">
                                                        <asp:DataList ID="DataList1" runat="server"  Width="100%" OnItemCommand="DataList1_ItemCommand" DataKeyField="mid">
                                                       
                                                            <ItemTemplate>
                                                                <table id="Table1" border="0" cellpadding="0" cellspacing="1" width="100%">
                                                                    <tr bgcolor="#000000">
                                                                        <td valign="top" width="100%">
                                                                            <table id="Table4" border="0" cellpadding="3" cellspacing="1" width="100%">
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#effbe1" style="width:30%; background-color: #abb8d6">
                                                                                        姓 名</td>
                                                                                    <td bgcolor="#ffffff" align="left">
                                                                                        <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.name") %>'></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#effbe1" style="width: 30%; height: 24px; background-color: #abb8d6">
                                                                                        email</td>
                                                                                    <td align="left" bgcolor="#ffffff" style="height: 24px">
                                                                                        <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.email") %>'></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#effbe1" style="width: 1655px; background-color: #abb8d6">
                                                                                        留言时间</td>
                                                                                    <td bgcolor="#ffffff" align="left">
                                                                                        <asp:Label ID="Label4" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.addtime") %>'></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#effbe1" style="width: 1655px; background-color: #abb8d6">
                                                                                        标题</td>
                                                                                    <td align="left" bgcolor="#ffffff">
                                                                                        <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.title") %>'></asp:Label></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#effbe1" style="width: 1655px; background-color: #abb8d6">
                                                                                        <font face="宋体">留言内容</font></td>
                                                                                    <td bgcolor="#ffffff" valign="top" align="left">
                                                                                        <asp:TextBox ID="TextBox1" runat="server" CssClass="TextBox" Height="42px" Text='<%# DataBinder.Eval(Container, "DataItem.content") %>'
                                                                                            TextMode="MultiLine" Width="500px"></asp:TextBox></td>
                                                                                </tr>
                                                                                <tr valign="middle">
                                                                                    <td align="center" bgcolor="#effbe1" style="height: 24px; width: 1655px; background-color: #abb8d6;">
                                                                                        <font face="宋体">回 &nbsp; &nbsp;复</font></td>
                                                                                    <td bgcolor="#ffffff" style="height: 24px" align="left">
                                                                                        <asp:TextBox ID="TextBox2" runat="server" CssClass="TextBox" Height="42px" Text='<%# DataBinder.Eval(Container, "DataItem.replycontent") %>'
                                                                                            TextMode="MultiLine" Width="500px"></asp:TextBox></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" bgcolor="#ffffff" colspan="2">
                                                                                                        <asp:Button ID="Button2" runat="server" CommandName="reply" CssClass="Button" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"mid") %>'  OnCommand="Button2_Command" Text="回复" />&nbsp;
                                                                                                    <asp:Button ID="Button4" runat="server" CommandName="del" CssClass="Button" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"mid") %>' Text="删除" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <br />
                                                            </ItemTemplate>
                                                            <SeparatorStyle HorizontalAlign="Center" />
                                                        </asp:DataList><asp:HyperLink ID="hylfirst" runat="server">首页</asp:HyperLink>
                                                        <asp:HyperLink ID="hylprev" runat="server">上一页</asp:HyperLink>
                                                        <asp:HyperLink ID="hylnext" runat="server">下一页</asp:HyperLink>
                                                        <asp:HyperLink ID="hylend" runat="server">尾页</asp:HyperLink>
                                                        第<asp:Label ID="lbRow" runat="server" Text="Label"></asp:Label>页， 共<asp:Label ID="lbpage"
                                                            runat="server" Text="Label"></asp:Label>页，共<asp:Label ID="lbRecord" runat="server"
                                                                Text="Label"></asp:Label>条记录，转到<asp:TextBox ID="txtlink" runat="server" Width="29px"  onkeypress="checkNum()"></asp:TextBox>
                                                        页<asp:LinkButton ID="link" runat="server" OnClick="link_Click" TabIndex="1">转到</asp:LinkButton>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" class="zi" valign="top">
                                                        </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
